package com.itzyf.pokemondata.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.itzyf.pokemondata.R
import com.itzyf.pokemondata.bean.MainDo

class MenuAdapter(layoutResId: Int, data: List<MainDo?>) :
    BaseQuickAdapter<MainDo, BaseViewHolder>(layoutResId, data) {

    override fun convert(helper: BaseViewHolder, item: MainDo?) {
        helper.setImageResource(R.id.image, item?.icon!!)
        helper.setText(R.id.text, item.title)
    }
}